package org.jeecg.modules.wms.vo;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 库存调整VO
 */
@Data
@ApiModel(value = "InventoryAdjustVO", description = "库存调整参数")
public class InventoryAdjustVO {

    @ApiModelProperty(value = "库存记录ID", required = true)
    @NotBlank(message = "库存记录ID不能为空")
    private String inventoryId;

    @ApiModelProperty(value = "调整类型：1-增加，2-减少", required = true)
    @NotNull(message = "调整类型不能为空")
    private Integer adjustType;

    @ApiModelProperty(value = "调整数量", required = true)
    @NotNull(message = "调整数量不能为空")
    private Integer adjustQuantity;

    @ApiModelProperty(value = "调整原因", required = true)
    @NotBlank(message = "调整原因不能为空")
    private String adjustReason;

    @ApiModelProperty(value = "备注")
    private String remark;
}
